package com.zyg.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GradeMapper {
    List<Grade> findAll(@Param("grade") Grade grade, @Param("offset") int offset, @Param("pageSize") int pageSize);

    // ��Ӱ༶
    int addGrade(Grade grade);

    // ɾ���༶
    int deleteGrade(int id);

    // ����ID���Ұ༶
    Grade findGradeById(int id);

    // ���°༶��Ϣ
    int updateGrade(Grade grade);

    // ͳ�ư༶��
    int count(Grade grade);

    // ��ȡ�༶�б�
    List<Grade> getGradeList();
}
